5.1. Style of programming

The C language is simple and handy, what makes it extremely popular among programmers. Virtual Panels is written in the manner that takes the best of both languages. I tried to use C++ features only when they were actually more suitable. Otherwise I adhered to the C language. I have used, for example, instead of C++ style streams C style streams, which seem to be more handy in use.

Program is recommended to be divided into several modules. In one must be the main function and global variables. The other modules may be devoted to the paint and button procedures, menu procedures. The menu system is declared in the stand-alone menu system function that is then registered in the main function or button procedure before the Loop function call. You can define you own dialogue boxes and other objects in your original style using powerful inheritance method of C++. Virtual Panels gives only basics for data presentation, at least in this version.